// Get the New/Amended Records
var records = GetNewAndAmendedRecords();

foreach (var record in records)
{
	if (record.Exists)
		UpdateRecord(record);
	else
		InsertRecord(record);
}